/*
 * @Author: yanzengyong 709402944@qq.com
 * @Date: 2025-07-21 17:16:55
 * @LastEditors: yanzengyong 709402944@qq.com
 * @LastEditTime: 2025-07-22 16:57:07
 * @FilePath: /cyj-boot-parent/cyj-boot-web/src/components/Common/largeFileUpload/src/api.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defHttp } from '/@/utils/http/axios';

interface wpsParams {
  bucket: string;
  fileKey: string;
  appId?: string;
  ext: string;
  account: string;
  permission: string;
}

// 获取在线编辑链接
export const wpsEdit = (params: wpsParams): Promise<string> => defHttp.get({ url: '/api/usb/wps/edit', params });

// 获取在线预览链接
export const wpsPreview = (params: wpsParams): Promise<string> => defHttp.get({ url: '/api/usb/wps/preview', params });
